package com.bwie.task;

import com.bwie.mapper.TbProdMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Author: badaotianqiong
 * @Date: 2025/6/27 10:22
 * @Description:
 **/
//@Component
public class ProdTast {

//    @Autowired
//    private TbProdMapper tbProdMapper;
//
//    @Scheduled(cron = "0 0/1 * * * ?")
//    public void updateProdUpTast(){
//        System.out.println("开始执行商品上架任务");
//        tbProdMapper.upProd();
//        System.out.println("结束商品上架任务");
//    }
//
//    @Scheduled(cron = "0 0/1 * * * ?")
//    public void updateProdDownTast(){
//        System.out.println("开始执行商品下架任务");
//        tbProdMapper.downProd();
//        System.out.println("结束商品下架任务");
//    }

}
